XML
Must be included via require.
xml.encode
Returns a string of XML.
Parameters
- data— A table or string to encode as XML.
- pretty— Whether to return a human-readable string of XML. Defaults to- false.
pluto
xml.decode
Returns a table representing the XML data.
Parameters
- data— The XML data to decode.
- parser— Which parser to use against the data. Can be "html", "xml" (default), or "lax" (XML but accepts attributes without- =).
pluto
For ease of use, the returned tables have an __index metamethod:
pluto
If there is no single root element, a "body" element is implied as the root:
pluto